import request from '@/utils/request';
//import requestUpload from '@/utils/requestUpload';

export async function getLicenseOrderByPage(params: any) {
  return request('/api/sales/getLicenseOrderByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addLicenseOrder(params: any) {
  return request('/api/sales/addLicenseOrder', {
    method: 'POST',
    data: params,
  });
}

export async function delLicenseOrder(params: any) {
  return request('/api/sales/delLicenseOrder', {
    method: 'POST',
    data: params,
  });
}

export async function updateLicenseOrder(params: any) {
  return request('/api/sales/updateLicenseOrder', {
    method: 'POST',
    data: params,
  });
}

export async function licenseOrderList(params: any) {
  return request('/api/sales/licenseOrderList', {
    method: 'POST',

    data: params,
  });
}

/**
 * 下载excel
 * @param params
 * @returns
 */
export async function licenseExcelExport() {
  return request('/api/sales/licenseExcelExport', {
    method: 'POST',
    responseType: 'blob',
  });
}
